[guided]We fix one target value $k \in \mathbb Z$ and ask: when does $X+Y$ equal $k$? Since $X$ is integer-valued, each outcome $\omega$ with $X(\omega)+Y(\omega)=k$ has a unique integer value $j=X(\omega)$. Once that value of $X$ is fixed, the value of $Y$ is forced to be $k-j$.
For each $j \in \mathbb Z$, define
\begin{align*}
A_j := \{\omega \in \Omega : X(\omega)=j\} \cap \{\omega \in \Omega : Y(\omega)=k-j\}.
\end{align*}
These events record the mutually exclusive ways in which the sum can equal $k$: first $X$ takes the value $j$, and then $Y$ takes the complementary value $k-j$.
We verify the decomposition in both directions. If $\omega \in \Omega$ satisfies $X(\omega)+Y(\omega)=k$, define $j:=X(\omega)$. Because $X$ is integer-valued, $j\in\mathbb Z$, and then $Y(\omega)=k-X(\omega)=k-j$. Hence $\omega\in A_j$, so $\omega$ lies in the union $\bigcup_{j\in\mathbb Z}A_j$.
Conversely, if $\omega\in A_j$ for some $j\in\mathbb Z$, then $X(\omega)=j$ and $Y(\omega)=k-j$. Therefore
\begin{align*}
X(\omega)+Y(\omega)=j+(k-j)=k.
\end{align*}
Thus
\begin{align*}
\{\omega \in \Omega : X(\omega)+Y(\omega)=k\} = \bigcup_{j\in\mathbb Z} A_j.
\end{align*}
Finally, this union is disjoint. If $j_1\neq j_2$, then an outcome $\omega$ cannot simultaneously satisfy $X(\omega)=j_1$ and $X(\omega)=j_2$. Hence $A_{j_1}\cap A_{j_2}=\varnothing$.
We also need to justify that $X+Y$ is a random variable, not merely an integer-valued function. For the fixed $k$, the decomposition gives
\begin{align*}
S^{-1}(\{k\})=\bigcup_{j\in\mathbb Z}A_j.
\end{align*}
Each $A_j$ is measurable because $A_j=X^{-1}(\{j\})\cap Y^{-1}(\{k-j\})$, the singletons $\{j\}$ and $\{k-j\}$ belong to $2^{\mathbb Z}$, and $X,Y$ are measurable. Since $\mathbb Z$ is countable, the union is countable, so $S^{-1}(\{k\})\in\mathcal F$. Because every subset of $\mathbb Z$ is a countable union of singletons, this proves $S^{-1}(B)\in\mathcal F$ for every $B\subset\mathbb Z$. Therefore $S=X+Y:(\Omega,\mathcal F)\to(\mathbb Z,2^{\mathbb Z})$ is a random variable. The disjointness is exactly what allows countable additivity to convert the probability of the union into a sum of probabilities.[/guided]