You must mean p(b/a).

Let $p(x)=q(x)(x^2-1)+ax+b$ for some $a,b$. What happens when you apply the idea behind the proof of the fact you quoted above (the polynomial remainder theorem)? The idea there is to instantiate $x$ with the root of the divisor ($x^2-1$ in this case).