The full text of this witty tune (if I remember my primary school days clearly) is:
Beans,beans, the magical fruit the more you eat, the more you toot. The more you toot, the better you feel. So lets have beans for every meal!
Huzzah!