Ribenboim discusses this in Chapter XIII, Section 2, of 13 Lectures on Fermat's Last Theorem. First, he proves,
Theorem. If $n\ge3$, if $p(z)$ is a nonzero polynomial of degree at most $n-2$, if $f(z)$ and $g(z)$ are entire functions such that $(f(z))^n+(g(z))^n=p(z)$, then $f(z)$, $g(z)$, and $p(z)$ are constants.
From this, he deduces the corollary:
If $n\ge3$, if $f(z)$, $g(z)$, $h(z)$ are nonzero entire functions such that $h(z)$ never vanishes, and if $(f(z))^n+(g(z))^n=(h(z))^n$, then there exist nonzero complex numbers $a$, $b$ such that $f(z)=ah(z)$, $g(z)=bh(z)$, $a^n+b^n=1$.
He gives the proof of the Theorem under the stronger hypothesis that $p(z)$ has degree at most $n-3$ – he says the proof for $n-2$ is somewhat more technical.
Let $\zeta$ be a primitive $2n$th root of $1$ (e.g., $\zeta=e^{\pi i/n}$). Then $${p(z)\over(g(z))^n}=\prod_{j=1}^n\left({f(z)\over g(z)}+\zeta^{2j-1}\right)$$
The meromorphic function on the left has at most $n-3$ zeros. So, at least three factors on the right side never vanish. Thus, the meromorphic function $f(z)/g(z)$ misses three values. By Picard's Theorem, $f(z)/g(z)$ is a constant. The Theorem follows.
Ribenboim cites F. Gross, On the functional equation $f^n+g^n=h^n$, Amer. Math. Monthly 73 (1966) 1093-1096.