Yes a 2.5L will fit with some changes made. Here is info I got from a salvage interchange index. These are the one that will fit your truck, provided that it is a 4-cyl 2wd.These below will fit directly.
MAZDA B-2300 1994-1997 M.T.; 4x2
RANGER 1988-1989 M.T.; 4x2, 4 cyl
RANGER 1990-1997 M.T.; 4x2, 4-140 (2.3L)
These below will fit by switching the extension housing and shifter stub.
MAZDA B-2500 1998-2001 M.T.
RANGER 1998-2001 M.T.; 4x2, 4-153 (2.5L)
Foot Note
Caution. Clutch slave cylinder available with two different color connectors. '88-89 uses blue & '90 and newer use gold, switch as needed.