The defendant may give bail by executing a written undertaking in favor of the plaintiff with a corporate surety or two or more individual sureties unless the court determines that one individual surety is sufficient, stating their places of residence, to the effect that the defendant shall at all times render himself amenable to the process of the court during the pendency of the action, and to such as may be issued to enforce the judgment therein. If the defendant was arrested for the cause mentioned in paragraph (3) of section 172 of this title, an undertaking to the same effect as that provided by section 216 of this title shall be given.