What is meant by “sufficiently nice”?
Suppose we zoom in on the function z=f(x,y) centering our zoom on the point (a,b) and we see a plane. What can we say about the plane?
The partial derivatives for the plane at the point must be the same as the partial derivatives for the function.
Therefore, the equation for the tangent plane is