From the way you phrase your question, I suspect that you misunderstand something. Being supercuspidal is a local condition. If $\pi$ is an automorphic representation of $\mathrm{GL}_2$ over $\mathbb{Q}$, then $\pi_p$ might be supercuspidal for some ramified primes $p$, and non-supercuspidal for some other ramified primes $p$. The Ramanujan conjecture is a global statement, but it can be phrased as: $\pi_p$ is tempered for any prime $p$.
I will try to summarize for you what is known from local theory. For more details see Schmidt: Some remarks on local newforms for GL(2). Let $\omega$ be the central character of $\pi$, and assume that it is unitary (this is a simple normalization condition). For any prime $p$, there are five possibilities:
- $\pi_p$ is induced from two unramified characters of $\mathbb{Q}_p^\times$;
- $\pi_p$ is induced from one ramified and one unramified character of $\mathbb{Q}_p^\times$;
- $\pi_p$ is induced from two ramified characters of $\mathbb{Q}_p^\times$;
- $\pi_p$ is a Steinberg representation of $\mathrm{GL}_2(\mathbb{Q}_p)$ twisted by a character of $\mathbb{Q}_p^\times$;
- $\pi_p$ is a supercuspidal representation of $\mathrm{GL}_2(\mathbb{Q}_p)$.
In the first case, $\pi_p$ is unramified, and $\pi_p$ is tempered if and only if the inducing characters of $\mathbb{Q}_p^\times$ are unitary. This is known when $\pi_\infty$ belongs to the discrete series (Deligne's famous theorem), but unknown otherwise.
In the second case, $\omega_p$ is ramified (hence $\pi_p$ is also ramified), and $\pi_p$ is tempered if and only if the inducing unramified character of $\mathbb{Q}_p^\times$ is unitary. Again, this is only known in special cases.
In the remaining three cases, $\pi_p$ is tempered.