The Bavarians went into the game on the back of last weekend's surprise 2-0 defeat at Hoffenheim, but they hit back in style as Thomas Muller and Arjen Robben scored in the first half before Robert Lewandowski celebrated his 100th Bundesliga appearance with a brace after the interval.
Speaking after the convincing win, which moved Bayern up to second in the table, Ancelotti said: "We played well with good intensity and were able to kill the game off.
"The movement of our four attacking players was good, and they combined well.
"Of course, when we missed two or three chances when we were leading 1-0 the game could have become more complicated, but after we scored the second goal, we continued to play and press.
"We didn't concede any opportunities apart from two or three situations where our passing was not so clean. After that, it was important for us to move well up front."