Meanwhile, Kim emphasizes the importance of fiber — especially from plant foods. “Daily consumption of a large amount of dietary fiber is an excellent way to build a healthy gut,” he says. He recommends eating 25 to 30 grams every day — advice that Mayer also endorses. Beans, lentils, berries, and whole grains are all good sources.