We consider a certain family of Kudla–Rapoport cycles on an integral model of a Shimura variety attached to a unitary group of signature (1, 1), and prove that the arithmetic degrees of these cycles are Fourier coefficients of the central derivative of an Eisenstein series of genus 2. The integral model in question parameterizes abelian surfaces equipped with a non-principal polarization and an action of an imaginary quadratic number ring, and in this setting the cycles are degenerate: they may contain components of positive dimension. This result can be viewed as confirmation, in the degenerate setting and for dimension 2, of conjectures of Kudla and Kudla–Rapoport that predict relations between the intersection numbers of special cycles and the Fourier coefficients of automorphic forms.