Let $f$ be a complex function on an open connected set in $\mathbb{C}$. Let $g:\mathbb{C}\rightarrow \mathbb{C}^2$ be such that $g(z)=(z,f(z))$. If for any plurisubharmonic function $u$ on $\mathbb{C}^2$, $u\circ g$ is subharmonic, then prove that $f$ is holomorphic.
I guess it is a deal of chain rule, but my tries never successfull. I really want to do it myself, so can somebody please give me hints.