Example 5 Given positive real numbers $x, y, z$ satisfy
$$
\left\{\begin{array}{l}
x^{3}-x y z=-5, \\
y^{3}-x y z=2, \\
z^{3}-x y z=21 .
\end{array}\right.
$$

Find the value of $x+y+z$.
Let $x y z=k$. Then
$$
\left\{\begin{array}{l}
x^{3}=k-5, \\
y^{3}=k+2, \\
z^{3}=k+21 .
\end{array}\right.
$$

Multiplying the above three equations, we get
$$
\begin{array}{l}
k^{3}=(x y z)^{3}=(k-5)(k+2)(k+21) \\
\Rightarrow 18 k^{2}-73 k-210=0 \\
\Rightarrow k_{1}=6, k_{2}=-\frac{35}{18} \text { (not suitable, discard). }
\end{array}
$$

Substituting $k=6$ into the system of equations (1), we solve to get
$$
x=1, y=2, z=3 \text {. }
$$

Therefore, $x+y+z=6$.