A surety who has paid the debt of his principal shall be subrogated, both at law and in equity, to all the rights of the creditor and, in a controversy with other creditors, shall rank in dignity the same as the creditor whose claim he paid.
OCGA § 10-7-56