Here is another way:
Suppose $f$ is analytic.
Note that $|f(z)| \le L(1+|z|^3)$ for some $L>0$, then it follows from Cauchy's estimates
that $f$ is a polynomial of degree at most 3, that is
$f(z) = \sum_{k=0}^3 a_k z^k$.
Evaluating along the real line (that is, $y=0$) gives $f(x) = \sum_{k=0}^3 a_k x^k$, and
we know that $f(x) = x^3$, hence we have $a_3=1$ and $a_k = 0$ for $k = 0,1,2$.
That is, we have $f(z) = z^3$.
Now expand $(x+iy)^2$, then comparing coefficients shows that $a,b,c$ must
have the values above.
Note: The above uses the fact that the functions $(x,y) \mapsto x^my^n$ are linearly independent.