I tried proving that, with the given assumptions, $f'(0)$ is $0$, that way I could say that $f(z)$ is constant, since I have already proved that if the derivative is $0$ then the function is constant. I wrote the following
$$ \left|\frac{f(z_1) - f(z_2)}{z_1 - z_2}\right| = \frac{|f(z_1) - f(z_2)|}{|z_1 - z_2|}$$
and tried to find somethings along the lines of $|f(z_1)| - |f(z_2)|$, which would be $0$, but none of the usual moduli inequalities is helping me.
Any hints?