In any civil action involving liability for a deficiency pursuant to Section 55-9-504 or 58-19-7 NMSA 1978, the debtor, if prevailing, may in the discretion of the court be allowed a reasonable attorney fee set by the court and taxed and collected as costs.
NMS § 39-2-2