How do I solve the sum $\sum_{n=0}^{\infty}r^n\cos(wn+\phi)z^{-n}$?

I do believe that the title got most of my question covered,

$$\sum_{n=0}^{\infty}r^n\cos(wn+\phi)z^{-n}=?$$

Any help is highly appreciated.

My work so far; I could use trigonometric identity, but specifically I was wondering if this problem could be solved by using Euler's formula.

Write $$\cos(w n + \phi) = \frac{e^{i (wn + \phi)}}{2} + \frac{e^{-i(wn+\phi)}}{2}$$ and you get two geometric series to sum. Be careful about convergence.
$$e^{i\phi}\sum_{n=0}^\infty(re^{iw}/z)^n$$ which is s geometric series