Edit: I am working over $\mathbb C$ here, but a similar answer work over an arbitrary algebraically closed field. See my comment below as well as Andrea Ferreti's.
The degree of the divisor is equal to the degree of the image of $\varphi$, let's call it $C$, times the topological degree of the map $ \varphi : X \to C$.

