Here are a few tips I learned from macrobiotic cooking...although I do not know if they are enough to counteract IBS.
1. Soak the beans before cooking, and then drain off the soaking water. 2. Cook the beans with a strip of the seaweed kombu. 3. Use aduki (or adzuki) beans...they are the least irritating to the GI tract.