If you have been served with papers, you have 20 days from the date you are served to file a Responsive Pleading.
That does not always mean an answer.
There are times when a Motion to Dismiss should be filed instead.
It is important to file your Motion to Dismiss first as failing to do so may waive your right to request dismissal later.
Consulting with an attorney before filing an Answer is generally recommended.