Jupp Heynckes' side banished the memory of its poor loss in midweek with an easy victory over Markus Babbel's side, and kept up its 100 percent start to the Bundesliga
The hosts controlled the match throughout, and the Frenchman was on hand to open the scoring just before the 20 minute mark, and he finished the job just after the half.
Bayern suffered a disappointing 3-1 defeat to BATE Borisov in midweek, but immediately set about looking to set the record straight, with Ribery finding some space on the left-hand side of the box and flashing a ball across the face of goal which no-one was able to turn in.
However, with the memories of a 7-1 drubbing at the Allianz Arena in March still fresh, Hoffenheim was resolute in defense and was fairly successful in limiting the Bavarians' chances.
A Thomas Muller cross was hastily hacked over Koen Casteels' bar by Daniel Williams, but soon enough, the hosts would find the opener.
Muller brilliantly fed Ribery, who turned Andreas Beck with some fine footwork, before firing a strike between Casteels' legs to net his first of the season.
Despite, going ahead, Bayern was still having problems converting its dominance into clear-cut chances. A Toni Kroos volley was deflected behind for a corner, from which Mario Mandzukic headed over.
At the other end, meanwhile, the only time the dominated visitors came close to threatening Jupp Heycnkes' side was when Manuel Neuer charged out of his goal to head away a chipped pass, only for the ball to fall behind Joselu, despite an unfortunate deflection off Jerome Boateng.
After its modest first-half efforts, Bayern returned after the break with renewed vigor, and within two minutes of the restart, it was two ahead.
Kroos failed to make meaningful contact with a cross from the right, but recovered to prod the ball into Ribery's path, and the former Marseille winger duly swept the ball into the top corner.
Bayern was cruising, and threatened to register a third when Ribery charged into the area once more, but failed to pick out Kroos.
Then Xherdan Shaqiri's quick footwork was followed by a ferocious right-footed shot which was deflected behind for a corner which Javi Martinez failed to make contact with, despite being well stationed.
The Spaniard was then within inches of notching his first goal in a Bayern shirt, but saw Shaqiri's cross sail past him, and made his frustration clear by kicking the woodwork.
Hoffenheim finally registered an effort in the 76th minute when Beck shot from all of 30 yards, but the strike was plucked out of the air with ease by Neuer.
But the match had long ceased to be a contest, and Bayern was able to able to make it seven wins from as many Bundesliga games this season.