When $n=2$, we have $s=2^2+1=5$.
Substituting this value of $s$ into the equation $r=3^s-s$, we get $r=3^5-5=243-5=\boxed{238}$.
The answer is: 238
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
Let $r=3^s-s$ and $s=2^n+1$. What is the value of $r$ when $n=2$?

### Answer:
