Bayern, Bremen continue to impress
German striker Gomez, last season's top scorer in the Bundesliga, scored four goals - including a second-half hat-trick - to take his tally up to eight in the league after just five games.
Not to be out-done, Ribery netted twice in the first half as part of an eye-catching display with the Frenchman showing great footwork, especially for his first goal when he left two defenders standing.
Bayern replacement Nils Petersen profited from the Munich midfield's complete control when he scored the seventh just before the final whistle. Munich are at Villarreal on Wednesday in Group A of the Champions League and are in impressive form.
"We didn't see a lot of Freiburg, which was primarily due to my team," said Bayern coach Jupp Heynckes. "We were 3-0 up at half-time, but we still went for goals in the second half. That is important because it shows the character in the team.
"What pleases me the most is that all the players are working hard in defence, but I'm still convinced we can play better football, especially when we face stronger opponents."
The rout leaves Bayern top of the league and with just over a month gone of the new season, they already have a goal difference of 15. Regardless of results elsewhere they will finish the weekend as Bundesliga leaders.
Bremen go second
Werder Bremen went second in the table after ex-Chelsea striker Claudio Pizarro scored both goals in their 2-0 win at home to Hamburg in the north German derby.
Defending champions Borussia Dortmund suffered a shock 2-1 defeat at home to Hertha Berlin as they prepare for Tuesday's visit of Premier League side Arsenal in Europe's premier club competition.
This was Dortmund's second defeat in four league games and leaves Jurgen Klopp's side tenth in the table and puts Berlin seventh. "Hertha deserved to win," said Klopp.
"They were very disciplined in defence, we made it easy with our impatience. They had a bit of luck with their goals, but sometimes you need a little nod to win a game."
Borussia Monchengladbach, who only avoided relegation last season by the skin of their teeth, maintained their great start to the season with a 1-0 win at home to Kaiserlautern to go third.
Stuttgart enjoyed a comfortable 3-0 win at home to Hanover, while Hoffenheim moved up to fifth in the table after they hammered Mainz 4-0. On Friday, Bayer Leverkusen warmed up for Tuesday's trip to Chelsea in the Champions League with a 4-1 win over Augsburg which puts them fourth in the table.