let $\phi: R \to A$ a ring homomorphism and $f:Spec(A) \to Spec(R)$ the induced morphism on Specs. Let $p \in Spec(R)$. So $ R_p$ is local. This induces following commutative diagramm:
$$ \require{AMScd} \begin{CD} Spec(A_p) @>{a} >> Spec(A) \\ @VVgV @VVfV \\ Spec(R_p) @>{b}>> Spec(R); \end{CD} $$
a, b are inclusions (see property of localisations) and g is induced by f canonically. My question is how to see that $Spec(A_p) \cong Spec(A) \times _{Spec(R)} Spec(R_p)$ (therefore a pullback)?