Bayern Munich tore Freiburg apart in an embarrassingly one-sided encounter at the Allianz Arena which ended 7-0 to the hosts and Bundesliga leaders.
Nils Petersen's first goal in the Bundesliga completed the demolition job in the last minute. Freiburg managed only two attacks in the entire match as their game plan to defend and frustrate Bayern failed miserably.
"We understood from the beginning we had to maintain the same momentum, attitude, motivation and concentration that we showed in Kaiserslautern," said Bayern coach Heynckes after his team won 3-0 away a fortnight ago.
"My team put in a classy display, not just in the first half, but also showed a lot of enthusiasm and allowed the opposition very little in defence.
"In the second half, we kept scoring despite leading 3-0 and that is an important character trait of the team. I am very satisfied, but we all know that we have to improve."
The rout began early, with Gomez scoring his fifth goal of the season after just seven minutes. Thomas Muller threaded a ball through to Toni Kroos, who unselfishly squared for Gomez to tap into the empty net.
Bastian Schweinsteiger could have made it two in the 16th minute when he only had Oliver Baumann to beat from Luiz Gustavo's cross, but he shot straight at the Freiburg goalkeeper.
Ribery shows class
It was not long before the second goal did arrive, and although Ribery initially got the ball trapped between his legs, he kept his composure to backheel it in from six yards.
The Frenchman then added the third with even more magic in the 41st minute. He controlled the ball perfectly, nudged it past the last remaining Freiburg defender and then placed his shot into the bottom corner.
There was no respite in the second half either as Bayern kept on attacking and added a fourth in the 52nd minute.
Ribery and Gomez both beat the offside trap and the Frenchman opted against trying to score his hat-trick and instead squared to Gomez, who netted his second simple goal of the afternoon from six yards.
Gomez gets another hat-trick
Three minutes later, Gomez completed his second hat-trick in as many games when Freiburg defender Oliver Barth kicked the ball against the Bayern forward's knee and the ball looped up over Baumann and in.
The Germany striker was almost embarrassed by the way he had scored his seventh Bundesliga goal of the season, yet he was to have the ball in the back of the net again twice before the final whistle.
However, only one of them counted. He was ordered to retake the penalty that he scored in the 71st minute after Muller had been fouled by Garra Dembele, but he made no mistake with the second spot-kick to make it four for him and six for Bayern.
Substitute Petersen then completed the scoring with the last kick of the game, putting Schweinsteiger's cross in from point-blank range.