Let $f: X \to Y$ a dominant morphism of varieties over a field $k$. My 'varieties' are by definition irreducible and let denote as $g_X \in X$ and $g_Y \in Y$ their generic points. Dominant means that $f(g_X)=g_Y$. Let $n= \dim(X), m= \dim(Y)$. Then it is known that the transcendence degree of function fields of varieties coinside with their dimensions. Therefore $\operatorname{trdeg}_k \ K(X) =\dim(X)=n$ and $\operatorname{trdeg}_k \ K(Y) =\dim(Y)$.
I want to check that the dimension of the generic fiber $X_{g_Y} = f^{-1}(g_Y)$ is $e= n-m$.
My 'proof' has some gaps I would like to plug. Assume that both varieties are affine: $X= \operatorname{Spec}(A), Y=\operatorname{Spec}(R)$. The map $f$ is dominant, therefore $R \to A$ is injective. The affine ring of generic fiber $X_{g_Y}$ is $A \otimes_R K(Y)$. Since $g_X \in X_{g_Y} $ there exist a map $A \otimes_R K(Y) \to K(X)= \operatorname{Frac}(A)$ und therefore, since $K(X)$ is a field, we get the induced inclusion of fields $K(A \otimes_R K(Y)) \subset K(X)$. $K(A \otimes_R K(Y))$ is the function field of generic fiber $X_{g_Y}$.
Question: what do we know about the field extension $K(A \otimes_R K(Y)) \subset K(X)$? which transcendence degree does it have?
My idea is obvious: if I can prove that $\operatorname{trdeg}_{K(A \otimes_R K(Y)} K(X)= m$ then I can use additivivity formula for transcendence degrees of field extensions to show that $\operatorname{trdeg}_k K(A \otimes_R K(Y))=n-m$ because of $\operatorname{trdeg}_k \ K(X) =n$ and additivity for tower of extensions $k \subset K(A \otimes_R K(Y) \subset K(X)$. But I don't know how I can figure out that $\operatorname{trdeg}_{K(A \otimes_R K(Y)} K(X)= m$.