I'll post an answer since I thought this'd be an easy problem, but I couldn't get anything better than what Gilbarg-Trudinger get (see equation 7.45 on pg. 164 on the third printing and set $S=\Omega$ there), and for them the constant $c$ blows up if the measure of $\Omega$ goes to 0 (so for example it's bad for rectangles with sides $a, 1$, with $0<a<<1$).
I'll use $c(n,p)$ to denote the best constant in the inequality
$$
\lVert u-u_\Omega\rVert_p^p \leq c(n,p)d^p\lVert \nabla u\rVert_p^p,
$$
where $d:=\text{diam}\Omega$, and norms are taken over $\Omega$.
Turns out, it's a much more intricate problem. As far as I know it was only semi-recently answered:
The case $p=2$ is due to Payne and Weinberger, and their technique of reducing things to a weighted, one-dimensional Poincaré inequality is used in all subsequent works (there's also a lot of nice geometry arguments going on in all the papers discussed). They prove that the optimal constant is the same as that for the 1-d problem on the interval $[0,d]$, $d=\text{diam}\Omega$, i.e. $c(n,2)=(1/\pi)^2$. In particular it's dimension free!
The case $p=1$ is due to Acosta and Durán. The constant here is $c(n,1)=1/2$.
The case of general $p>2$ is due to Esposito, Nitsch, and Trombetti. They show that $C(n,p)=(1/\pi_p)^p$, where $\pi_p$ is some explicit constant ($\pi_2=\pi$). Here $C(n,p)$ denotes the best constant for
$$
\inf_{t\in \mathbb{R}}\lVert u-t\rVert_p^p \leq C(n,p)d^p \lVert\nabla u \rVert_p^p.
$$
The reason is that this is the formulation that corresponds to a Rayleigh quotient, as in the case $p=2$, and it's this quotient that gets related to a weighted, 1-d estimate. This is not a problem as far as getting an upper bound for $c(n,p)$ since
$$
\inf_{t\in \mathbb{R}}\lVert u-t\rVert_p \leq \lVert u-u_\Omega\rVert_p \leq 2\inf_{t\in \mathbb{R}}\lVert u-t\rVert_p,
$$
and so $c(n,p)\leq 2^p (1/\pi_p)^p$. I didn't look too much to see if they find the optimal value of $c(n,p)$.
The case $p>1$ was done by Valtorta and Valtorta, Naber in a more general context, by estimating the eigenvalues of the p-Laplacian on manifolds with certain conditions (here I must admit I know little about differential geometry, and so some of the terminology in these papers is unknown to me).
Short of it then, you can actually get away with dimension-free constants, but you have to work for them. I'm not aware of a simpler (perhaps dimension-dependent) proof of a bound involving only the diameter.