You need to have an attorney do this.
The basic format is to keep the exact same caption as the complaint, title it "Answer to Complaint and Affirmative Defenses" (if you are pleading any), and go through the complaint number by number and either admit, deny, or say without notice/not applicable.
Hope this helps.