To get a gingersnap, you'll need three red magic beans. Gather all three and you'll be able to obtain it.
It's a simple trade-off, so keep an eye out for those beans as you play.