This is a bit of an unusual approach, and possibly not suitable for beginner group theorists, but I'll go ahead and present it anyway in case someone finds it interesting:
You can consider elements of $\mathbb{Z}\times\mathbb{Z}$ as two-dimensional vectors, and apply matrix transformations just as you'd do in linear algebra. Transformations by matrices give group homomorphisms (a linear map is just a special kind of homomorphism, after all), and moreover, using matrices of determinant 1 give rise to isomorphisms (as you can show by explicitly calculating the inverse). My strategy here is to come up with a neat isomorphism from $\mathbb Z^2$ to itself that maps $(a,b)$ to $(0,d)$, so that the question becomes simple.
I know from number theory that the GCD of two integers can be written as a linear combination of them, so I'll go ahead and do that: $d = xa + yb$ for some $x$ and $y$. So I'm imagining the second row of my isomorphism matrix will probably be $(x\ \ y)$, so that $(a,b)$ maps to something with second component $d$. I want the first component to be 0, so I want some zero linear combination of $a$ and $b$. Well, the most obvious is $b$ lots of $a$ and $-a$ lots of $b$. So here's the candidate matrix:
\[\begin{pmatrix}
b & -a \\
x & y
\end{pmatrix}\]
Not bad – it induces a homomorphism that maps $(a,b)$ to $(0,d)$ just like we wanted. Problem, though: it's not an isomorphism! Calculate the determinant and you get $yb + xa = d$, where we wanted 1. Hmm... multiplying a row or column by $1/d$ would sort that out, but of course we need integer entries, so we can't just put that anywhere we like. But let's not forget $d$ is the GCD of $a$ and $b$, so certainly $d$ divides both of them – or in other words, both $b/d$ and $-a/d$ are integers! And indeed, the below matrix is an isomorphism:
\[\begin{pmatrix}
b/d & -a/d \\
x & y
\end{pmatrix}\]
That lets you go from $\mathbb Z^2/\langle (a,b) \rangle$ to $\mathbb Z^2/\langle (0,d) \rangle$. And it's pretty clear (e.g. by the first isomorphism theorem, but this time with a much simpler $\phi$) that the latter is just $\mathbb Z \times \mathbb Z_d$.
Footnote: it's actually not so hard to see that every homomorphism from $\mathbb Z^2$ to itself can be represented as a matrix, so if you already have intuition about when maps can and cannot be linear transformations, you may be able to bring that over to this case. For example, your proposed homomorphism multiplies together two input terms, which is not a very linear thing to do!