In fact, you can ponder the following: If $R,S$ are commutative rings, then any ring homomorphism $\varphi\colon R[X_1,\dotsc,X_n]\rightarrow S$ determines a ring homomorphism $\varphi\vert_R\colon R\rightarrow S$ by restricting to the subring $R$ and $n$ elements $\varphi(X_1),\dotsc,\varphi(X_n)\in S$.
I claim that, conversely, given a ring homomorphism $\psi\colon R\rightarrow S$ and elements $x_1,\dotsc,x_n\in S$, there exists a unique ring homomorphism $\varphi\colon R[X_1,\dotsc,X_n]\rightarrow S$ s.t. $\varphi\vert_R=\psi$ and $\varphi(X_i)=x_i$ for $i=1,\dotsc,n$.