Easiest is to forgo any consideration of logarithms.
$\displaystyle i = e^{i\pi/2}.$
Therefore, $~\displaystyle i^{2 + ib} = \left[e^{i\pi/2}\right]^{2 + ib}$.
This equals $~\displaystyle e^{(i\pi/2) \times (2 + ib)}.$
This equals $~\displaystyle e^{[(-b\pi/2) + i(\pi)]}.$
This equals
$$e^{-b\pi/2} \times e^{i(\pi)}. \tag1 $$
Since both factors in (1) above are real numbers, the product is a real number.
Addendum
To a certain extent, I pulled a fast one.
The assertion that $~\displaystyle i = e^{i\pi/2}$ is convention dependent.
More generally, $~\displaystyle i = e^{i[(\pi/2) + 2k\pi]} ~: ~k \in \Bbb{Z}.$
Therefore, $~\displaystyle i^{2 + ib} = \left[e^{i[(\pi/2) + 2k\pi]}\right]^{2 + ib}$.
This equals $~\displaystyle e^{i[(\pi/2) + 2k\pi] \times (2 + ib)}.$
This equals $~\displaystyle e^{(-b)(\pi/2 + 2k\pi) + i(\pi + 4k\pi)]}.$
This equals
$$e^{-b(\pi/2 + 2k\pi)} \times e^{i(\pi + 4k\pi)}. \tag2 $$
Since both factors in (2) above are real numbers, the product is a real number.