The distribution of electromagnetic energy density in a dispersive and dissipative metamaterial consisting of arrays of wires and split-ring resonators is obtained, using a simple approach. We show energy stored in the system can be regarded to consist of energy density of electric and magnetic fields plus energy density terms related to response of the medium. To derive energy density formulas of the medium, we compare equations of motion of polarization and magnetization of the system with corresponding differential equations of appropriate RLC circuits.