The question of what to do has been covered in detail in many post.
Since the Miranda warning has been mentioned.
Cops don't have to issue the warning until you are in custody. Basically, until they tell you you're underest or prevent you from leaving anything you say is fair game.
Spats can give you an excellent explanation.