With today's knowledge, Gödel's theorem should be regarded as a corollary of the impossibility to solve the halting problem.
In my opinion, this is also how it should be taught in order to convey the explanation for its truth in the most straightforward way.
After that, one may of course also note that in the old days, without a good theory of computation, one had to resort to such hacks as Gödel numbers.
A good explanation including all the finer points can be found here: https://www.scottaaronson.com/blog/?p=710