The ship carrying the Bangladeshis will bring back Myanmar security personnel who crossed the border recently amid fighting with rebels
The arrestees have been identified as Jamaluddin, 18 and Sagor Molla, 41.
Railway police OC Abdul Majid said Jamal reached Kamalapur station around 9am on Wednesday by Chittagong Mail.
On frisking him, 1,000 Yaba pills were found.
Sagor arrived at Kamalapur around 10:15am by Chattala Express. From his possession 300 pieces of Yaba tablets were seized.
Legal action was being initiated against them, said the OC.